﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F21 RID: 3873
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicEnterLayerCsReq : IMessage<RogueMagicEnterLayerCsReq>, IMessage, IEquatable<RogueMagicEnterLayerCsReq>, IDeepCloneable<RogueMagicEnterLayerCsReq>, IBufferMessage
	{
		// Token: 0x17003135 RID: 12597
		// (get) Token: 0x0600ADC7 RID: 44487 RVA: 0x001D61A9 File Offset: 0x001D43A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicEnterLayerCsReq> Parser
		{
			get
			{
				return RogueMagicEnterLayerCsReq._parser;
			}
		}

		// Token: 0x17003136 RID: 12598
		// (get) Token: 0x0600ADC8 RID: 44488 RVA: 0x001D61B0 File Offset: 0x001D43B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicEnterLayerCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003137 RID: 12599
		// (get) Token: 0x0600ADC9 RID: 44489 RVA: 0x001D61C2 File Offset: 0x001D43C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicEnterLayerCsReq.Descriptor;
			}
		}

		// Token: 0x0600ADCA RID: 44490 RVA: 0x001D61C9 File Offset: 0x001D43C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicEnterLayerCsReq()
		{
		}

		// Token: 0x0600ADCB RID: 44491 RVA: 0x001D61D1 File Offset: 0x001D43D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicEnterLayerCsReq(RogueMagicEnterLayerCsReq other) : this()
		{
			this.nextRoomType_ = other.nextRoomType_;
			this.curLevelIndex_ = other.curLevelIndex_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600ADCC RID: 44492 RVA: 0x001D6202 File Offset: 0x001D4402
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicEnterLayerCsReq Clone()
		{
			return new RogueMagicEnterLayerCsReq(this);
		}

		// Token: 0x17003138 RID: 12600
		// (get) Token: 0x0600ADCD RID: 44493 RVA: 0x001D620A File Offset: 0x001D440A
		// (set) Token: 0x0600ADCE RID: 44494 RVA: 0x001D6212 File Offset: 0x001D4412
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint NextRoomType
		{
			get
			{
				return this.nextRoomType_;
			}
			set
			{
				this.nextRoomType_ = value;
			}
		}

		// Token: 0x17003139 RID: 12601
		// (get) Token: 0x0600ADCF RID: 44495 RVA: 0x001D621B File Offset: 0x001D441B
		// (set) Token: 0x0600ADD0 RID: 44496 RVA: 0x001D6223 File Offset: 0x001D4423
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurLevelIndex
		{
			get
			{
				return this.curLevelIndex_;
			}
			set
			{
				this.curLevelIndex_ = value;
			}
		}

		// Token: 0x0600ADD1 RID: 44497 RVA: 0x001D622C File Offset: 0x001D442C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicEnterLayerCsReq);
		}

		// Token: 0x0600ADD2 RID: 44498 RVA: 0x001D623A File Offset: 0x001D443A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicEnterLayerCsReq other)
		{
			return other != null && (other == this || (this.NextRoomType == other.NextRoomType && this.CurLevelIndex == other.CurLevelIndex && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600ADD3 RID: 44499 RVA: 0x001D6278 File Offset: 0x001D4478
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.NextRoomType != 0U)
			{
				num ^= this.NextRoomType.GetHashCode();
			}
			if (this.CurLevelIndex != 0U)
			{
				num ^= this.CurLevelIndex.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600ADD4 RID: 44500 RVA: 0x001D62D0 File Offset: 0x001D44D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600ADD5 RID: 44501 RVA: 0x001D62D8 File Offset: 0x001D44D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600ADD6 RID: 44502 RVA: 0x001D62E4 File Offset: 0x001D44E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CurLevelIndex != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.CurLevelIndex);
			}
			if (this.NextRoomType != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.NextRoomType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600ADD7 RID: 44503 RVA: 0x001D6340 File Offset: 0x001D4540
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.NextRoomType != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.NextRoomType);
			}
			if (this.CurLevelIndex != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurLevelIndex);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600ADD8 RID: 44504 RVA: 0x001D6398 File Offset: 0x001D4598
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicEnterLayerCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.NextRoomType != 0U)
			{
				this.NextRoomType = other.NextRoomType;
			}
			if (other.CurLevelIndex != 0U)
			{
				this.CurLevelIndex = other.CurLevelIndex;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600ADD9 RID: 44505 RVA: 0x001D63E8 File Offset: 0x001D45E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600ADDA RID: 44506 RVA: 0x001D63F4 File Offset: 0x001D45F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.NextRoomType = input.ReadUInt32();
					}
				}
				else
				{
					this.CurLevelIndex = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004679 RID: 18041
		private static readonly MessageParser<RogueMagicEnterLayerCsReq> _parser = new MessageParser<RogueMagicEnterLayerCsReq>(() => new RogueMagicEnterLayerCsReq());

		// Token: 0x0400467A RID: 18042
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400467B RID: 18043
		public const int NextRoomTypeFieldNumber = 13;

		// Token: 0x0400467C RID: 18044
		private uint nextRoomType_;

		// Token: 0x0400467D RID: 18045
		public const int CurLevelIndexFieldNumber = 2;

		// Token: 0x0400467E RID: 18046
		private uint curLevelIndex_;
	}
}
